# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time        : 2021/10/10 19:42
@Author      : Albert Darren
@Contact     : 2563491540@qq.com
@File        : inverse_im.py
@Version     : Version 1.0.0
@Description : TODO
@Created By  : PyCharm
"""
from DIP_experiment_4.util import contrast_show
from skimage.io import imread
import numpy as np

img_path = "../experiment_fig/breast_digital_Xray.tif"
my_font = "C:/Windows/Fonts/simsun.ttc"

origin_im = imread(img_path)
inverse_im = np.ones_like(origin_im) * 255 - origin_im

img_dict = {"原始图像": origin_im, "反图像": inverse_im}
contrast_show(img_dict, (1, 2), wspace=0.4, font=my_font)
